package com.bye.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("product_info")
public class ProductInfoDto {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String productName;
    private BigDecimal originalPrice;
    private BigDecimal sellingPrice;
    private String productCategory;
    private Integer salesVolume;
    private Integer stock;
    private String coverImage;
    private String carouselImages;
    private String productIntroduction;
    private Integer earnedPoints;
    private String productDetails;

    @TableField(exist = false)
    private List<ProductSpecificationDto> specifications;
}
